<?php
namespace Home\Controller;
use Think\Controller;
class CommonController extends Controller {
   public function __construct()
   {
        parent::__construct();

   }
   public function nav(){
       $cate=D('cate');
       $res=$cate->query("SELECT * FROM cate");
       $this->assign('res',$res);
   }
}